package com.synnex.wms.service;
/**
 * 食谱 接口实现类，service
 * */

import com.synnex.wms.mapper.ShipuMapper;
import com.synnex.wms.pojo.Shipu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ShipuService {

	@Autowired
	private ShipuMapper ShipuMapper;
	
	public int deleteByPrimaryKey(Integer id){
		return ShipuMapper.deleteByPrimaryKey(id);
	}

    public int insert(Shipu record){
    	return ShipuMapper.insert(record);
    }

    public int insertSelective(Shipu record){
    	return ShipuMapper.insertSelective(record);
    }

    public Shipu selectByPrimaryKey(Integer id){
    	return ShipuMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Shipu record){
    	return ShipuMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(Shipu record){
    	return ShipuMapper.updateByPrimaryKey(record);
    }
    
    //查询所有
    public List<Shipu> selectBy(){
    	return ShipuMapper.selectBy();
    }
    
    public List<Shipu> showlist(Shipu Shipu){
    	return ShipuMapper.showlist(Shipu);
    }
    public int pagecount(Shipu Shipu){
    	return ShipuMapper.pagecount(Shipu);
    }
    
    
}
